package com.wn.mapper;

import com.wn.bean.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yellow Docter
 * @since 2022-05-16
 */
public interface PermissionMapper extends BaseMapper<Permission> {

//    @Select("select * from t_permission where pid in (\n" +
//            "\t\tselect pid from t_role_permission where rid in (\n" +
//            "\t\t\tselect rid from t_user_role where uid = (\n" +
//            "\t\t\t\tselect uid from t_user where username = #{name}\n" +
//            "\t\t)\n" +
//            "\t)\n" +
//            ")")
//    List<Permission> listPerson(String name);

}
